<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="http://www.kuibutech.com/wechatAuth/css/weui.css">
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <title>燃烧,照亮他人</title>
</head>

<style>
    .tips{
        text-align: center;
        color: #9B9B9B;
        margin-bottom: 5px;
    }
</style>

<body>

<c:if test="${messages[0]==null}">
    <img src="http://www.kuibutech.com/wechatAuth/img/nothing.png" style="display:block;margin:0px auto;width: 40%">
</c:if>

<c:forEach items="${messages}" var="message">
    <a style="display: block;text-decoration: none;color: #111111"
       href="/wechatAuth/message/gotoMessagePage/${message.id}" class="weui_panel">
        <div class="weui_panel_bd">
            <div class="weui_media_box weui_media_text">
                <h4 class="weui_media_title">${message.title}</h4>
                <p class="weui_media_desc">${message.secondary}</p>
                <ul class="weui_media_info">
                    <li class="weui_media_info_meta">时间: ${message.time}</li>
                </ul>
            </div>
        </div>
    </a>
</c:forEach>

<div class="tips"><spa>--- 没有啦~ ---</spa></div>


<div class="weui_tabbar" style="position: fixed;margin-bottom: 0px;z-index: 100">
    <a class="weui_tabbar_item" href="/wechatAuth/route/gotoCard">
        <div class="weui_tabbar_icon">
            <img src="http://www.kuibutech.com/wechatAuth/img/icon_nav_article.png">
        </div>
        <p class="weui_tabbar_label">打卡</p>
    </a>

    <a class="weui_tabbar_item" href="/wechatAuth/route/gotoMain">
        <div class="weui_tabbar_icon">
            <img src="http://www.kuibutech.com/wechatAuth/img/icon_nav_cell.png">
        </div>
        <p class="weui_tabbar_label">我的</p>
    </a>

    <a class="weui_tabbar_item" href="/wechatAuth/route/gotoMessage">
        <div class="weui_tabbar_icon">
            <img src="http://www.kuibutech.com/wechatAuth/img/icon_nav_dialog.png">
        </div>
        <p class="weui_tabbar_label">通知</p>
    </a>

</div>


<!-- jQuery文件 -->
<script src="http://www.kuibutech.com/wechatAuth/js/upload_pic.js"></script>
</body>
</html>